<!doctype html>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

        <title>Search Form</title>
        <meta name="description" content="">
        <meta name="author" content="">
    </head>
    
    <body>
        The result of search with inputted name <s:property value="nameSearch"/><br/>
        <table border="1" style="border: solid">
            <thead>
                <tr>
                    <th>No.</th>
                    <th>Contact Name</th>
                    <th>Mobile Phone</th>
                    <th>Email</th>
                    <th>Contact Type</th>
                </tr>
            </thead>

            <tbody>
                
                <s:iterator value="list" var="contact" status="listStt">
                    <tr>
                        <td><s:property value="%(#listStt.count)"/></td>
                        <td><s:property value="contactName"/></td>
                        <td><s:property value="mobilePhone"/></td>
                        <td><s:property value="email"/></td>
                        <td><s:property value="contactType"/></td>
                        
<!--                        <td>${contact.contactName}</td>
                        <td>${contact.mobilePhone}</td>
                        <td>${contact.email}</td>
                        <td>${contact.contactType}</td>
                        <td></td>-->
                    </tr>
                </s:iterator>
            </tbody>
        </table>

    </body>
</html>